﻿<!DOCTYPE html>
<html>
<head>
    <title>@ViewBag.Title</title>
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/style.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.4.4.min.js")" type="text/javascript"></script>
        <script src="@Url.Content("~/Scripts/script.js")" type="text/javascript"></script>
</head>

<body>
    <div class="container">
        <!--dau trang-->
        <div class="banner">
            <div class="logo"></div>
            <div class="menu">
            <div class="button">@Html.ActionLink("TRANG CHỦ", "TrangChu", "Home")</div>
            <div class="button">@Html.ActionLink("GIỚI THIỆU", "GioiThieu", "Home")</div>
            <div class="button">@Html.ActionLink("CỬA HÀNG", "CuaHang", "Home")</div>
            <div class="button">@Html.ActionLink("TUYỂN DỤNG", "TuyenDung", "Home")</div>
	        <div class="time"> <script>time()</script></div>
            <div class="clear"></div>
        </div>
        </div>
        <!--giua  trang-->
        <div class="main">
            <!--cot trai-->
            <div class="columnleft">
                <div class="header-column">DANH MỤC SẢN PHẨM</div>
                <div class="noidungcanhtrai2">
                        <div class="sidebarmenu">
			                @{Html.RenderAction("Menu", "loaisach");}
         	            </div>
                </div>
            </div>
            <!--cot giua trong-->
            <section>
                 @RenderBody()
            </section>
            <!--cot phai-->
            <div class="columnright">
                <div class="header-column">ĐĂNG NHẬP</div>
                <div class="noidungcanhtrai2">
                    <div style="margin-bottom:5px; margin-top:10px">
                        @if (Request.IsAuthenticated && Session["User"] != null)
                        {
                            <div>
                                <div style="margin-top: 5px">Xin chào <strong>@Html.Encode(User.Identity.Name)</strong></div>
                                <div style="margin-top: 5px">@Html.ActionLink("Sửa thông tin","SuaThongTin","nguoidung")</div>
                                <div style="margin-top: 5px">@Html.ActionLink("Đăng xuất", "DangXuat", "nguoidung")</div>
                            </div>
                        }
                        else
                        {
                            <div>
                                @using (Html.BeginForm("DangNhap","nguoidung"))
                                { 
                                    <form name="dangnhap" method="post">
                                                <table>
                                                    <tr>
                                                        <td align="left">Tên truy cập</td>
                                                        <td><input type="text" name="username" id="username" size="13" maxlength="35" /><br></td>
                                                    </tr>
                                                    <tr>
                                                        <td align="left">Mật khẩu</td>
                                                        <td><input type="password" name="password" id="password" size="13" value="" ><br></td>
                                                    </tr>
                                                    <tr>
                                                        <td></td>
                                                        <td align="left"><input id="remember" class="checkbox" type="checkbox" checked="checked" value="true" name="remember">Ghi nhớ</td>
                                                    </tr>
                                                    <tr>
                                                        <td></td>
                                                        <td align="left"><input type="submit" style="text-align:center" value="Đăng nhập"></td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="2">
            	                                        <div>@Html.ActionLink("Đăng ký thành viên", "DangKy", "nguoidung")</div>
                                                        </td>
                                                    </tr>
                                                </table>   
        	                                 </form>
                                }  
                            </div>
                        }
                    </div>
                    </div>
                @{Html.RenderAction("menugiohang", "cart");}
                  	  	            
                <div class="header-column">SẢN PHẨM BÁN CHẠY</div>
                @{Html.RenderAction("sachbanchay", "sach");}
            </div>
            <div class="clear"></div>
      </div>
        <!--cuoi trang-->
         <div class="footer">
                © Copyright 2013 <b>SAIGONBOOKS</b>, All rights reserved.
            </div>
         </div>   
    </div>    
</body>
</html>
